
package com.bcurtu.service;

import java.util.Date;

import org.springframework.transaction.annotation.Transactional;

import com.bcurtu.db.Account;

@Transactional
public interface TempAliasService {
	
	public Account getAccountByAliasAndForward(String alias,String forward);

	public boolean createAccount(String alias, String forward, Integer minutes);

	public void extendAccount(Account acc, Integer minutes);

	public boolean isValidAlias(String alias);
	
	public int blockAccounts(Date date);

	public boolean blockAccountByAlias(String alias);

	public int deleteExpiredAccounts(Date date);
	
	public boolean deleteAccountByAlias(String alias);
}
